-- Language
-- Create by zouyb
-- 语言相关

module("Language", package.seeall);

local engineVersion;

---------------------------------
-- 获取系统语言环境
function getSysLang()
    local lang = "en";

    if isAndroidPlatform() then
        lang = callJavaFunc("getSysLang", { }, "()Ljava/lang/String;");
        print("android language: " .. lang);
    elseif isIphonePlatform() or isIpadPlatform() then
        lang = callOCFunc("getSysLang");
        print("ios language: " .. lang);
    end

    print("system language: " .. lang);
    return lang;
end
